package com.lzh.o2o.service;

import java.io.File;
import java.io.InputStream;

import com.lzh.o2o.dto.ImageHolder;
import com.lzh.o2o.dto.ShopExecution;
import com.lzh.o2o.exception.ShopOperationException;
import com.lzh.o2o.pojo.Shop;

public interface ShopService {
	//将File类型，改造成InpueStream 还有包括图片处理
	public  ShopExecution addShop(Shop shop, ImageHolder thumbnail) throws ShopOperationException;
	
	/**
	 * 
	* @Title: getByShopId 
	* @Description: 通过店铺id获取店铺信息 
	* @param shopId
	* @return Shop
	* @author haohao
	* @date 2018年9月11日下午5:53:54
	 */
	public Shop getByShopId(long shopId) throws ShopOperationException;
	/**
	 * 
	* @Title: modifyShop 
	* @Description: 更新店铺信息，包括对图片的处理
	* @param shop
	* @param shopImgInputStream
	* @param fileName
	* @return
	* @throws ShopOperationException ShopExecution
	* @author haohao
	* @date 2018年9月11日下午5:55:41
	 */
	public ShopExecution modifyShop(Shop shop,ImageHolder thumbnail) throws ShopOperationException;


	/**
	 * 
	* @Title: getShopList 
	* @Description: 根据传入的ShopCondition分页返回店铺列表用户展示 
	* @param shopCondition
	* @param pageIndex
	* @param pageSize
	* @return
	* @throws ShopOperationException ShopExecution
	* @author haohao
	* @date 2018年9月12日下午4:59:01
	 */
	public ShopExecution getShopList(Shop shopCondition,int pageIndex,int pageSize)throws ShopOperationException;

}
